public class Student{
    // 属性
    String name;
    int age;
    String gender;
    // ...
    // 方法
    public void sayHello(){
      System.out.println("hello");
    }
    public void sayName(){
      System.out.println("my name is " + name);
    }
  }